VERSION 5.00
Begin VB.Form frmCOD 
   BackColor       =   &H00FFFFFF&
   Caption         =   "COD (Collect on Delivery) Information"
   ClientHeight    =   6510
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8475
   Icon            =   "frmCOD.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   6510
   ScaleWidth      =   8475
   StartUpPosition =   1  'CenterOwner
   Begin VB.Frame Frame2 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Remittance Address"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   2955
      Left            =   120
      TabIndex        =   21
      Top             =   2940
      Width           =   6135
      Begin VB.TextBox f1241 
         Height          =   315
         Left            =   1860
         TabIndex        =   14
         Top             =   1380
         Width           =   3975
      End
      Begin VB.TextBox f1240 
         Height          =   315
         Left            =   1860
         TabIndex        =   13
         Top             =   1020
         Width           =   3975
      End
      Begin VB.TextBox f1238 
         Height          =   315
         Left            =   1860
         TabIndex        =   12
         Top             =   660
         Width           =   3975
      End
      Begin VB.TextBox f1242 
         Height          =   315
         Left            =   1860
         TabIndex        =   15
         Top             =   1740
         Width           =   3975
      End
      Begin VB.TextBox f1244 
         Height          =   315
         Left            =   4740
         TabIndex        =   17
         Top             =   2100
         Width           =   1095
      End
      Begin VB.TextBox f439 
         Height          =   315
         Left            =   1860
         TabIndex        =   11
         Top             =   300
         Width           =   3975
      End
      Begin VB.TextBox f1237 
         Height          =   315
         Left            =   1860
         TabIndex        =   18
         Top             =   2460
         Width           =   3975
      End
      Begin VB.ComboBox f1243 
         Height          =   315
         Left            =   1860
         TabIndex        =   16
         Top             =   2100
         Width           =   2175
      End
      Begin VB.Label Label18 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "City:"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   180
         TabIndex        =   28
         Top             =   1800
         Width           =   1575
      End
      Begin VB.Label Label17 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Address:"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   180
         TabIndex        =   27
         Top             =   1080
         Width           =   1575
      End
      Begin VB.Label Label16 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Zip:"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   4140
         TabIndex        =   26
         Top             =   2160
         Width           =   495
      End
      Begin VB.Label Label15 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "State:"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   180
         TabIndex        =   25
         Top             =   2160
         Width           =   1575
      End
      Begin VB.Label lblCODName 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Contact Name:"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   180
         TabIndex        =   24
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label13 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Company Name:"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   180
         TabIndex        =   23
         Top             =   720
         Width           =   1575
      End
      Begin VB.Label Label12 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Telephone:"
         BeginProperty Font 
            Name            =   "Tahoma"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   180
         TabIndex        =   22
         Top             =   2520
         Width           =   1575
      End
   End
   Begin VB.CommandButton cmdSave 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Caption         =   "&Save/Exit"
      Height          =   315
      Left            =   1680
      MaskColor       =   &H0080C0FF&
      Style           =   1  'Graphical
      TabIndex        =   19
      Top             =   6060
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdCancel 
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      Caption         =   "&Cancel"
      Height          =   315
      Left            =   3480
      MaskColor       =   &H0080C0FF&
      Style           =   1  'Graphical
      TabIndex        =   20
      Top             =   6060
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.Frame fraLTLCOD 
      BackColor       =   &H00FFFFFF&
      BorderStyle     =   0  'None
      Caption         =   "COD"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   750
      Left            =   675
      TabIndex        =   34
      Top             =   990
      Width           =   7500
      Begin VB.Frame Frame4 
         BackColor       =   &H00FFFFFF&
         BorderStyle     =   0  'None
         Caption         =   "COD Fee Payor"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000080FF&
         Height          =   255
         Left            =   1800
         TabIndex        =   36
         Top             =   420
         Width           =   3015
         Begin VB.OptionButton f6103 
            BackColor       =   &H00FFFFFF&
            Caption         =   "Shipper Addr"
            Height          =   255
            Index           =   1
            Left            =   0
            TabIndex        =   6
            Top             =   0
            Width           =   1275
         End
         Begin VB.OptionButton f6103 
            BackColor       =   &H00FFFFFF&
            Caption         =   "Other Addr"
            Height          =   255
            Index           =   2
            Left            =   1500
            TabIndex        =   7
            Top             =   0
            Width           =   1275
         End
      End
      Begin VB.Frame Frame1 
         BackColor       =   &H00FFFFFF&
         BorderStyle     =   0  'None
         Caption         =   "COD Fee Payor"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H000080FF&
         Height          =   255
         Left            =   1740
         TabIndex        =   35
         Top             =   60
         Width           =   3495
         Begin VB.OptionButton f6104 
            BackColor       =   &H00FFFFFF&
            Caption         =   "Shipper"
            Height          =   255
            Index           =   1
            Left            =   60
            TabIndex        =   4
            Top             =   0
            Width           =   1155
         End
         Begin VB.OptionButton f6104 
            BackColor       =   &H00FFFFFF&
            Caption         =   "Consignee"
            Height          =   255
            Index           =   2
            Left            =   1560
            TabIndex        =   5
            Top             =   0
            Width           =   1275
         End
      End
      Begin VB.Label Label3 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "COD Remit Payor:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   60
         TabIndex        =   38
         Top             =   420
         Width           =   1635
      End
      Begin VB.Label Label2 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "COD Fee Payor:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   37
         Top             =   60
         Width           =   1455
      End
   End
   Begin VB.Frame Frame0 
      BackColor       =   &H00FFFFFF&
      Caption         =   "COD"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   2715
      Left            =   90
      TabIndex        =   29
      Top             =   120
      Width           =   8250
      Begin VB.Frame fraCOD 
         BackColor       =   &H00FFFFFF&
         BorderStyle     =   0  'None
         Caption         =   "Frame5"
         Height          =   975
         Left            =   360
         TabIndex        =   39
         Top             =   1620
         Width           =   7725
         Begin VB.ComboBox f186 
            Height          =   315
            ItemData        =   "frmCOD.frx":030A
            Left            =   2040
            List            =   "frmCOD.frx":0320
            TabIndex        =   8
            Top             =   0
            Width           =   3435
         End
         Begin VB.CheckBox f3014 
            BackColor       =   &H00FFFFFF&
            Caption         =   "ECOD"
            Height          =   255
            Left            =   2040
            TabIndex        =   9
            Top             =   360
            Width           =   1995
         End
         Begin VB.CheckBox chkCOD1stPiece 
            BackColor       =   &H00FFFFFF&
            Caption         =   "COD on First Piece Only"
            Height          =   255
            Left            =   2040
            TabIndex        =   10
            Top             =   660
            Width           =   2835
         End
         Begin VB.Label Label4 
            Alignment       =   1  'Right Justify
            BackColor       =   &H00FFFFFF&
            Caption         =   "Add Freight Chgs:"
            BeginProperty Font 
               Name            =   "MS Sans Serif"
               Size            =   8.25
               Charset         =   0
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   255
            Left            =   60
            TabIndex        =   40
            Top             =   60
            Width           =   1815
         End
      End
      Begin VB.TextBox f53 
         Height          =   315
         Left            =   2400
         TabIndex        =   0
         Top             =   240
         Width           =   1935
      End
      Begin VB.Frame Frame3 
         BackColor       =   &H00FFFFFF&
         BorderStyle     =   0  'None
         Caption         =   "Frame1"
         Height          =   255
         Left            =   840
         TabIndex        =   30
         Top             =   600
         Width           =   7290
         Begin VB.OptionButton optCollectType 
            BackColor       =   &H00FFFFFF&
            Caption         =   "Secured Check"
            Height          =   255
            Index           =   0
            Left            =   1530
            TabIndex        =   1
            Top             =   0
            Width           =   1560
         End
         Begin VB.OptionButton optCollectType 
            BackColor       =   &H00FFFFFF&
            Caption         =   "Non-Secured Check"
            Height          =   255
            Index           =   1
            Left            =   3240
            TabIndex        =   2
            Top             =   0
            Width           =   2010
         End
         Begin VB.OptionButton optCollectType 
            BackColor       =   &H00FFFFFF&
            Caption         =   "Currency ONLY"
            Height          =   255
            Index           =   2
            Left            =   5625
            TabIndex        =   3
            Top             =   0
            Width           =   1515
         End
         Begin VB.Label Label11 
            Alignment       =   1  'Right Justify
            BackColor       =   &H00FFFFFF&
            Caption         =   "Collection Type:"
            BeginProperty Font 
               Name            =   "MS Sans Serif"
               Size            =   8.25
               Charset         =   0
               Weight          =   700
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   375
            Left            =   0
            TabIndex        =   31
            Top             =   0
            Width           =   1455
         End
      End
      Begin VB.Label lblAmtMsg 
         BackColor       =   &H00FFFFFF&
         Caption         =   "(Total for shipment)"
         ForeColor       =   &H000080FF&
         Height          =   255
         Left            =   4440
         TabIndex        =   33
         Top             =   300
         Width           =   1395
      End
      Begin VB.Label Label1 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Amount:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   960
         TabIndex        =   32
         Top             =   300
         Width           =   1335
      End
   End
End
Attribute VB_Name = "frmCOD"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

'---------------------------------------------------------------------------------------
' Procedure : chkCOD1stPiece_Click()
' DateTime  : 8/19/2005
' Purpose   : Call sub to set the message next to the Amount field
'---------------------------------------------------------------------------------------
'
Private Sub chkCOD1stPiece_Click()
    Call SetAmtMsg
End Sub
'---------------------------------------------------------------------------------------
' Procedure : cmdCancel_Click()
' DateTime  : 2/18/2004
' Purpose   : Cancel button hides form
'---------------------------------------------------------------------------------------
'
Private Sub cmdCancel_Click()
    Me.Hide
    If frmShip.Visible Then frmShip.SetFocus
End Sub
'---------------------------------------------------------------------------------------
' Procedure : cmdSave_Click()
' DateTime  : 2/18/2004
' Purpose   : Save button assigns COD fields to global vars and saves COD return address
'           : to registry.
'---------------------------------------------------------------------------------------
'
Private Sub cmdSave_Click()
    
    Call AssignFormGlobalVars
    
    With g_clsReg
        .SetRegistryValue "ECOD", f3014, REG_SZ
        .SetRegistryValue "COD1stPiece", chkCOD1stPiece, REG_SZ
        If f6103(2).Value = True Then
            .SetRegistryValue "CODContact", f439, REG_SZ
            .SetRegistryValue "CODCompany", f1238, REG_SZ
            .SetRegistryValue "CODAddress", f1240, REG_SZ
            .SetRegistryValue "CODAddress2", f1241, REG_SZ
            .SetRegistryValue "CODCity", f1242, REG_SZ
            .SetRegistryValue "CODState", Left(f1243, 2), REG_SZ
            .SetRegistryValue "CODZip", f1244, REG_SZ
            .SetRegistryValue "CODPhone", f1237, REG_SZ
        End If
        .SetRegistryValue "LTLRemitPayor", IIf(f6103(1), 1, 2), REG_SZ
        .SetRegistryValue "LTLFeePayor", IIf(f6104(1), 1, 2), REG_SZ
    End With
    Me.Hide
    If frmShip.Visible Then frmShip.SetFocus

End Sub
'---------------------------------------------------------------------------------------
' Procedure : AssignFormGlobalVars()
' DateTime  : 4/26/2006
' Purpose   : Assign the form's global vars
'---------------------------------------------------------------------------------------
'
Public Sub AssignFormGlobalVars()
    
     'COD Amount
    g_str53 = f53
    
    '01/11/06 Updated for LTL
    'Pay type Express
    If Left(frmShip.f1274, 2) <> "92" And Left(frmShip.f1274, 3) <> "111" Then
        g_str54 = IIf(optCollectType(0), "Y", "N")
    'Pay type LTL
    ElseIf Left(frmShip.f1274, 3) = "111" Then
        If optCollectType(0) Then
            g_str3000 = "2"
        ElseIf optCollectType(1) Then
            g_str3000 = "4"
        Else
            g_str3000 = "5"
        End If
    'Pay type Ground
    Else
        If optCollectType(0) Then
            g_str3000 = "1"
        ElseIf optCollectType(1) Then
            g_str3000 = "2"
        Else
            g_str3000 = "3"
        End If
    End If
    
    'Add freight chgs
    g_str186 = IIf(f186 = "[No]", "", Left(f186, 1))
    'ECOD
    g_str3014 = IIf(f3014 = 1 And frmShip.f27(2) = 1, "Y", "")
    
    g_str439 = f439
    g_str1237 = f1237
    g_str1238 = f1238
    g_str1240 = f1240
    g_str1241 = f1241
    g_str1242 = f1242
    g_str1243 = Left(f1243, 2)
    g_str1244 = f1244
    
    '01/11/06 LTL COD Fee Payor and COD Remit Payor
    g_str6104 = IIf(f6104(1), "1", "2")
    g_str6103 = IIf(f6103(1), "", "3")

End Sub

'---------------------------------------------------------------------------------------
' Procedure : f1237_Change()
' DateTime  : 2/18/2004
' Purpose   : COD phone is numeric only with max length of 10
'---------------------------------------------------------------------------------------
'
Private Sub f1237_Change()
    Call NumericOnly(f1237, False)
    Call CheckLength(f1237, 10)
End Sub
'---------------------------------------------------------------------------------------
' Procedure : f1243_Change()
' DateTime  : 8/9/2004
' Purpose   : Calls a routine to populate the entire text of selected state.
'---------------------------------------------------------------------------------------
'
Private Sub f1243_Change()
    If Len(f1243) >= 2 Then
        Call SetComboSelection(f1243, f1243)
    End If
    
End Sub

'---------------------------------------------------------------------------------------
' Procedure : f1244_Change()
' DateTime  : 2/18/2004
' Purpose   : COD ZIP is numeric only with max length of 5
'---------------------------------------------------------------------------------------
'
Private Sub f1244_Change()
    ' Call NumericOnly(f1244, False)
    ' Call CheckLength(f1244, 5)
End Sub

Private Sub f186_Change()
    If Len(f186) >= 1 Then
        Call SetComboSelection(f186, f186)
    End If
End Sub

'---------------------------------------------------------------------------------------
' Procedure : f53_Change()
' DateTime  : 2/18/2004
' Purpose   : COD Amount is numeric only, decimal allowed.
'---------------------------------------------------------------------------------------
'
Private Sub f53_Change()
    Call NumericOnly(f53)
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_Activate()
' DateTime  : 2/18/2004
' Purpose   : When form is shown get COD values from registry. If nothing is saved use
'           : current shipper info.
'---------------------------------------------------------------------------------------
'
Private Sub Form_Activate()
    'Get saved settings from registry. If nothing saved use values
    'from Setup form
    With g_clsReg
        .hkey = HKEYTYPE
        .KeyRoot = MAINKEYROOT
        .Subkey = MAINSUBKEY
        'Create Settings key if it doesn't exist
        If Not .KeyExists Then .CreateKey
        'Get saved Settings
        f3014 = .GetRegistryValue("ECOD", 0)
        chkCOD1stPiece = .GetRegistryValue("COD1stPiece", 0)
        If .GetRegistryValue("LTLRemitPayor", 1) = 1 Then
            f6103(1) = True
            Call GetShipperFields
        Else
            f6103(2) = True
            f439 = .GetRegistryValue("CODContact", frmSetup.f32)
            f1238 = .GetRegistryValue("CODCompany", frmSetup.f4)
            f1240 = .GetRegistryValue("CODAddress", frmSetup.f5)
            f1241 = .GetRegistryValue("CODAddress2", "")
            f1242 = .GetRegistryValue("CODCity", frmSetup.f7)
            f1243 = .GetRegistryValue("CODState", Left(frmSetup.f8, 2))
            f1244 = .GetRegistryValue("CODZip", frmSetup.f9)
            f1237 = .GetRegistryValue("CODPhone", frmSetup.f183)
        End If
        If .GetRegistryValue("LTLFeePayor", 1) = 1 Then
            f6104(1) = True
        Else
            f6104(2) = True
        End If
    End With
    
    Call AfterLostFocus(f53)
    
    'Set focus to COD Amount field
    f53.SetFocus
    
    'Added 8/19/05 for Ground MPS COD
    Call SetAmtMsg
    
End Sub
Private Sub GetShipperFields()
    With frmSetup
        f439 = .f32
        f1238 = .f4
        f1240 = .f5
        f1241 = ""
        f1242 = .f7
        f1243 = Left(.f8, 2)
        f1244 = .f9
        f1237 = .f183
    End With
End Sub

Private Sub Form_Initialize()

    Call Initialize(Me)
    
End Sub

'---------------------------------------------------------------------------------------
' Procedure : Form_KeyDown()
' DateTime  : 2/17/2005
' Purpose   : Enter key pressed sends a TAB to move to next field
'---------------------------------------------------------------------------------------
'
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If Not TypeOf Me.ActiveControl Is CommandButton Then
        If Shift = 0 And KeyCode = 13 Then
            SendKeys "{TAB}"
        End If
    End If
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_Load()
' DateTime  : 1/27/2005
' Purpose   : When form loads, load State and Country fields.
'---------------------------------------------------------------------------------------
'
Private Sub Form_Load()
    
    'Initialize State combo
    If g_str117 = "US" Then
        Call LoadStates(f1243)
    ElseIf g_str117 = "CA" Then
        Call LoadProvinces(f1243)
    ElseIf g_str117 = "MX" Then
        Call LoadMXStates(f1243)
    End If

End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_Load()
' DateTime  : 8/19/2005
' Purpose   : Set the message next to the Amount field. If Ground and not COD 1st piece
'             it should say "Per Piece", else it's "Total for Shipment".
'---------------------------------------------------------------------------------------
'
Private Sub SetAmtMsg()
    
    If Left(frmShip.f1274, 2) = "92" And chkCOD1stPiece = 0 Then
        lblAmtMsg.Caption = "(Per Piece)"
    Else
        lblAmtMsg.Caption = "(Total for Shipment)"
    End If

End Sub
'---------------------------------------------------------------------------------------
' Module    : GotFocus - textboxes
' DateTime  : 8/29/2005
' Author    : Chris Elwell
' Purpose   : The subroutines below call a routine to select all text in the text box
'             passed to the sub.
'---------------------------------------------------------------------------------------
'
Private Sub f53_GotFocus()
    Call SelectAllText(f53)
End Sub

Private Sub f439_GotFocus()
    Call SelectAllText(f439)
End Sub

Private Sub f1238_GotFocus()
    Call SelectAllText(f1238)
End Sub

Private Sub f1240_GotFocus()
    Call SelectAllText(f1240)
End Sub

Private Sub f1241_GotFocus()
    Call SelectAllText(f1241)
End Sub

Private Sub f1242_GotFocus()
    Call SelectAllText(f1242)
End Sub

Private Sub f1244_GotFocus()
    Call SelectAllText(f1244)
End Sub

Private Sub f1237_GotFocus()
    Call SelectAllText(f1237)
End Sub
'---------------------------------------------------------------------------------------
'End of GotFocus event subs
'---------------------------------------------------------------------------------------


